/**
 * 
 */
package com.mywind.entity.windfarm;

import java.util.Date;

import org.apache.ibatis.type.Alias;
import org.codehaus.jackson.map.annotate.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;

import com.mywind.util.CustomDateSerializer;

/**
 * @author a01513
 *
 */
@Alias("genPower")
public class GenPowerEntity {
	private String farmid;
	private String farmname;
	private int turbineid;
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	private Date vtime;
	private float value;
	private float windspeed;
	private float unvalue;
	private float tvalue;
	private float lvalue;
	private float coup;
	
	public String getFarmid() {
		return farmid;
	}
	public void setFarmid(String farmid) {
		this.farmid = farmid;
	}
	public int getTurbineid() {
		return turbineid;
	}
	public void setTurbineid(int turbineid) {
		this.turbineid = turbineid;
	}
	@JsonSerialize(using = CustomDateSerializer.class)
	public Date getVtime() {
		return vtime;
	}
	public void setVtime(Date vtime) {
		this.vtime = vtime;
	}
	public float getValue() {
		return value;
	}
	public void setValue(float value) {
		this.value = value;
	}
	public float getWindspeed() {
		return windspeed;
	}
	public void setWindspeed(float windspeed) {
		this.windspeed = windspeed;
	}
	public float getUnvalue() {
		return unvalue;
	}
	public void setUnvalue(float unvalue) {
		this.unvalue = unvalue;
	}
	public float getTvalue() {
		return tvalue;
	}
	public void setTvalue(float tvalue) {
		this.tvalue = tvalue;
	}
	public float getLvalue() {
		return lvalue;
	}
	public void setLvalue(float lvalue) {
		this.lvalue = lvalue;
	}
	public String getFarmname() {
		return farmname;
	}
	public void setFarmname(String farmname) {
		this.farmname = farmname;
	}
	public float getCoup() {
		return coup;
	}
	public void setCoup(float coup) {
		this.coup = coup;
	}
}
